﻿using System.Collections.Generic;

namespace NDK.Motion.StationLogic
{
    public class StationManager
    {
        public delegate void MachineProductionModeEventHandler(RunningModeEnum e);

        public static event MachineProductionModeEventHandler EventMachineProductionMode;

        static RunningModeEnum _MachineProductionMode = RunningModeEnum.NullMode;
        /// <summary>
        /// 机台的生产模式
        /// </summary>
        public static RunningModeEnum MachineProductionMode
        {
            get { return _MachineProductionMode; }
            set
            {
                if (EventMachineProductionMode != null)
                {
                    EventMachineProductionMode.BeginInvoke(value, null, null);
                }
                _MachineProductionMode = value;
            }
        }
        public static List<StationLogicAbstract> StationList = new List<StationLogicAbstract>();
    }
}
